home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Networking / SNMP / SNMP Development / MacSNMP Developer 1.0.2 / Sample Agent / SampleAgent MIB < prev   
Encoding:
Text File  |  1993-06-15  |  5.5 KB  |  171 lines  |  [TEXT/MPS ]

  1.           SampleAgent-MIB DEFINITIONS ::= BEGIN
  2.  
  3.           IMPORTS
  4.                     TRAP-TYPE
  5.                             FROM RFC-1215
  6.                   Counter
  7.                           FROM RFC1155-SMI
  8.                   enterprises, OBJECT-TYPE
  9.                           FROM RFC-1212
  10.                   apple, experimental
  11.                             FROM Apple-Macintosh-System-MIB;
  12.  
  13.           --  This MIB module uses the extended OBJECT-TYPE macro
  14.  
  15.           --  SampleAgent MIB
  16.  
  17.                   sample    OBJECT IDENTIFIER ::= { apple experimental 1 }
  18.  
  19.                   direct       OBJECT IDENTIFIER ::= { sample 1 }
  20.                   indirect    OBJECT IDENTIFIER ::= { sample 2 }
  21.  
  22.     --    The Direct Group
  23.  
  24.           dirInt OBJECT-TYPE
  25.                   SYNTAX INTEGER
  26.                   ACCESS read-write
  27.                   STATUS mandatory
  28.                   DESCRIPTION
  29.                        "A Direct Read/Write integer. A direct variable 
  30.                     is one in which the variable object accesses 
  31.                     the variable data directly."
  32.                   ::= { direct 1 }
  33.                   
  34.     --    The Indirect Group
  35.  
  36.           IndIntRW OBJECT-TYPE
  37.                   SYNTAX INTEGER
  38.                   ACCESS read-write
  39.                   STATUS mandatory
  40.                   DESCRIPTION
  41.                     "An indirect read/write integer. An indirect variable 
  42.                     is one in which the variable object accesses the 
  43.                     variable data indirectly through a function in the
  44.                     agent."
  45.                   ::= { indirect 1 }
  46.                   
  47.           IndIntR OBJECT-TYPE
  48.                   SYNTAX INTEGER
  49.                   ACCESS read-only
  50.                   STATUS mandatory
  51.                   DESCRIPTION
  52.                     "An Indirect read-only integer. An indirect variable 
  53.                     is one in which the variable object accesses the 
  54.                     variable data indirectly through a function in the
  55.                     agent."
  56.                   ::= { indirect 2 }
  57.                     
  58.           table1 OBJECT-TYPE
  59.                   SYNTAX SEQUENCE OF Table1Entry
  60.                   ACCESS not-accessible
  61.                   STATUS mandatory
  62.                   DESCRIPTION
  63.                        "A table consisting of 2 columns, an integer
  64.                     and a string.  Rows are added or deleted by
  65.                     setting the integer column."
  66.                   ::= { indirect 3 }
  67.  
  68.           table1Entry OBJECT-TYPE
  69.                   SYNTAX Table1Entry
  70.                   ACCESS not-accessible
  71.                   STATUS mandatory
  72.                   DESCRIPTION
  73.                        "Each entry contains one row of table 1. The 
  74.                     index is not a column of the table and can range
  75.                     from 1 to 20."
  76.                   INDEX { INTEGER }
  77.                   ::= { table1 1 }
  78.  
  79.           Table1Entry ::= SEQUENCE {
  80.                   t1Int     INTEGER,
  81.                   t1Str     OCTET STRING
  82.           }
  83.  
  84.           t1Int   OBJECT-TYPE
  85.                   SYNTAX INTEGER
  86.                   ACCESS read-write
  87.                   STATUS mandatory
  88.                   DESCRIPTION
  89.                       "The integer column of table1. This column is
  90.                     used to add and delete rows. Setting a value of 
  91.                     zero deletes the row, and setting a value from 
  92.                     1 to 999 adds the row. A value greater than 999 
  93.                     is invalid."
  94.                   ::= { table1Entry 1 }
  95.         
  96.           t1Str   OBJECT-TYPE
  97.                   SYNTAX OCTET STRING
  98.                   ACCESS read-write
  99.                   STATUS mandatory
  100.                   DESCRIPTION
  101.                       "The String column of table 1. A value must be
  102.                     set in this column when adding a row to the table."
  103.                   ::= { table1Entry 2 }
  104.  
  105.           table2 OBJECT-TYPE
  106.                   SYNTAX SEQUENCE OF Table2Entry
  107.                   ACCESS not-accessible
  108.                   STATUS mandatory
  109.                   DESCRIPTION
  110.                        "A two index table in which the indexes are columns
  111.                     in the table.  The valid column is used to create
  112.                     and delete rows."
  113.                   ::= { indirect 4 }
  114.  
  115.           table2Entry OBJECT-TYPE
  116.                   SYNTAX Table2Entry
  117.                   ACCESS not-accessible
  118.                   STATUS mandatory
  119.                   DESCRIPTION
  120.                        "Each entry contains one row of table 2. The indexes
  121.                     can each range from 1 to 10."
  122.                   INDEX { t2Index1, t2Index2 }
  123.                   ::= { table2 1 }
  124.  
  125.           Table2Entry ::= SEQUENCE {
  126.                     t2Index1    INTEGER,
  127.                   t2Index2    INTEGER,
  128.                   t2Str     OCTET STRING,
  129.                   t2Valid    INTEGER
  130.           }
  131.  
  132.           t2Index1 OBJECT-TYPE
  133.                   SYNTAX INTEGER
  134.                   ACCESS read-write
  135.                   STATUS mandatory
  136.                   DESCRIPTION
  137.                       "The first Index column of table 2. The value
  138.                     can range from 1 to 10."
  139.                   ::= { table2Entry 1 }
  140.                   
  141.           t2Index2 OBJECT-TYPE
  142.                   SYNTAX INTEGER
  143.                   ACCESS read-write
  144.                   STATUS mandatory
  145.                   DESCRIPTION
  146.                       "The second Index column of table 2. The value
  147.                     can range from 1 to 10."
  148.                   ::= { table2Entry 2 }
  149.  
  150.           t2Str   OBJECT-TYPE
  151.                   SYNTAX OCTET STRING
  152.                   ACCESS read-write
  153.                   STATUS mandatory
  154.                   DESCRIPTION
  155.                       "The String column of table 2. If not set when adding
  156.                     a row, a null string will be set by default."
  157.                   ::= { table2Entry 3 }
  158.                   
  159.           t2Valid OBJECT-TYPE
  160.                   SYNTAX INTEGER
  161.                   ACCESS read-write
  162.                   STATUS mandatory
  163.                   DESCRIPTION
  164.                       "The valid column of table 2. Setting it to zero
  165.                     deletes the row, and setting it to non-zero 
  166.                     adds the row."
  167.                   ::= { table2Entry 4 }
  168.  
  169.           END
  170.  
  171.